package xuanzhen.christian.service;

import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

import xuanzhen.christian.pojo.ChrisCus;
import xuanzhen.wx.pojo.AccessToken;

public interface ChrisService {
	/**
	 * 新增
	 */
	int insertCus(ChrisCus chrisCus)throws Exception;
	/**
	 * 修改
	 */
	int updateCus(ChrisCus chrisCus)throws Exception;
	/**
	 * 根据对象查询
	 */
	List<ChrisCus> queryListByCus(ChrisCus chrisCus)throws Exception;
	/**
	 * 根据map查询
	 */
	List<ChrisCus> queryListByMap(Map<String,Object> parameter)throws Exception;
	/**
	 * 
	 * 获得信息
	 * @throws UnsupportedEncodingException 
	 */
	ChrisCus catchUserMsg(AccessToken token) throws UnsupportedEncodingException;
}
